package com.aw.baselib.net.error

/**
 * @author : hzw
 * @date : 2021/6/25
 */
class ApiException(var errorCode: Int, var msg: String) : RuntimeException(
    msg
) {

    val isTokenExpried: Boolean
        /**
         * 判断是否是token失效
         *
         * @return 失效返回true, 否则返回false;
         */
        get() = errorCode == 401
}